package com.my.xq.domain.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.sskj.core.entity.BaseEntity;

@Entity
@Table(name = "xq_plan_message")
public class Plan_Message extends BaseEntity{
	/**
	 * 留言表
	 */
	private static final long serialVersionUID = 1L;
	@Column(length = 40)
	private String planId;	//方案ID
	@Column(length = 40)
	private String courtId;	//对应的小区ID
	@Column(length = 40)
	private String proprietorId;	//对应的业主ID
	@Column(length = 250)
	private String message;	//对应的业主留言
	
	@Transient
	private String courtName;
	
	@Transient
	private String proprietorName;
	
	@Transient
	private List<VoteResult> vrList;
	
	@Override
	public String toString() {
		return "Plan_Message [planId=" + planId + ", courtId=" + courtId + ", proprietorId=" + proprietorId
				+ ", message=" + message + "]";
	}

	public String getPlanId() {
		return planId;
	}

	public void setPlanId(String planId) {
		this.planId = planId;
	}

	public String getCourtId() {
		return courtId;
	}

	public void setCourtId(String courtId) {
		this.courtId = courtId;
	}

	public String getProprietorId() {
		return proprietorId;
	}

	public void setProprietorId(String proprietorId) {
		this.proprietorId = proprietorId;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public List<VoteResult> getVrList() {
		return vrList;
	}

	public void setVrList(List<VoteResult> vrList) {
		this.vrList = vrList;
	}

	public String getCourtName() {
		return courtName;
	}

	public void setCourtName(String courtName) {
		this.courtName = courtName;
	}

	public String getProprietorName() {
		return proprietorName;
	}

	public void setProprietorName(String proprietorName) {
		this.proprietorName = proprietorName;
	}
}
